// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
    return {
        name: "form",
        caption: "",
        codeName: "Main",
        enableAutoSave: false,
        entityCodeName: "AvueChildFive",
        keyPSAppDEField: "AvueChildFiveId",
        majorPSAppDEField: "AvueChildFiveName",
        cssName: "",
        controlType: "FORM",
        formStyle: "",
        valueRule: getValueRule(),
        createDefaultItems: getCreateDefaultItems(),
        updateDefaultItems: getUpdateDefaultItems(),
        detailModel: getDetailModel(),
        ctrlMsgModel:[
    ],
        uiEngineModel: [
            {
                name: 'engine_form',
                triggerType: 'CTRLEVENT',
                logicType: 'APPVIEWENGINE',
                eventNames: 'LOAD;SAVE;REMOVE',
                scriptCode: ``,
                entityCodeName: '',
                logicName:``
            }
    ]
    }
}
function getValueRule() {
    return [
    ]
}

function getCreateDefaultItems() {
    return [
    ]
}

function getUpdateDefaultItems() {
    return [
    ]
}
function getDetailModel() {
    return {
        formpage1: {
            caption: "基本信息",
            captionItemName: "",
            name: "formpage1",
            codeName: "formpage1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        group1: {
            caption: "avue示例实体05基本信息",
            captionItemName: "",
            name: "group1",
            codeName: "group1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        avuechildfivename: {
            caption: "avue示例实体05名称",
            captionItemName: "",
            name: "avuechildfivename",
            codeName: "avuechildfivename",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "AvueChildFiveName",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
            groupLogics: [
                {
                	name: '表单成员[avuechildfivename][面板显示]逻辑',
                	logicType: 'GROUP',
                	logicCat: 'PANELVISIBLE',
                	notMode: false,
                	groupOP: 'AND',
                	relatedDetailNames: ["formitem"],
                	childLogics: [
                		{
                			name: '',
                			logicType: 'SINGLE',
                			logicCat: '',
                			condOP: "EQ",
                			dEFDName: "formitem",
                			value: "1"
                		},
                	]
                },
            ],
        },
        avuetestname: {
            caption: "avue测试名称",
            captionItemName: "",
            name: "avuetestname",
            codeName: "avuetestname",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "AvueTestName",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            editRules: {
                editorType: 'PICKER',
            },
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
            valueItemName: "avuechildfiveid",
        },
        avuechildfiveid: {
            caption: "avue示例实体05标识",
            captionItemName: "",
            name: "avuechildfiveid",
            codeName: "avuechildfiveid",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "AvueChildFiveId",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        formpage2: {
            caption: "下拉树测试",
            captionItemName: "",
            name: "formpage2",
            codeName: "formpage2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        group2: {
            caption: "操作信息",
            captionItemName: "",
            name: "group2",
            codeName: "group2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        formitem: {
            caption: "下拉树",
            captionItemName: "",
            name: "formitem",
            codeName: "formitem",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "FIELDTEST",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            editRules: {
                editorType: 'DROPDOWNLIST',
            },
            codeListTag: "Sample__CheckBoxTest",
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        button1: {
            caption: "保存",
            captionItemName: "",
            name: "button1",
            codeName: "button1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "BUTTON",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            uIAction: {
                caption: "保存",
                uIActionMode: "SYS",
                disabled: false,
                visible: true,
                uIActionTag: "Save",
                noPrivDisplayMode: 2,
                dataAccessAction: "",
                actionTarget: "",
                showCaption: true,
                predefinedType: "EDITVIEW_SAVEACTION",
                actionDECodeName: "",
                
                iconClass: "fa fa-save"
            },
        },
    }
}
export const model = getModel();
